
KERNELDIR := /home/liping/share/alientek_linux/linux-imx-4.1.15-2.1.0-gb8ddbbc-v1.3
CURRENT_PATH := $(shell pwd)

DRIVER_NAME := xxx_driver

obj-m := $(DRIVER_NAME).o

build: kernel_modules

kernel_modules:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) modules
clean:
	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) clean

install:
	scp ./$(DRIVER_NAME).ko root@192.168.10.129:/lib/modules/4.1.15-gb8ddbbc
